#ifndef LCD_1602_H
#define LCD_1620_H

#include <BetterStream.h>


class LCD_1602: public BetterStream
{
public:
    void init();

#if defined(ARDUINO) && ARDUINO >= 100
    size_t write(uint8_t c);
#else
    void write(uint8_t c);
#endif

    void set_pos(uint8_t x, uint8_t y);
    void blink(bool enable = true);
    void blink(uint8_t x, uint8_t y, bool enable = true);
    void clear();
    void flush() {}
    int read()
    {
        return 0;
    }
    int available()
    {
        return 0;
    }
    int peek()
    {
        return 0;
    }
private:
    void write(const char c, bool ins);
private:
    uint8_t pos;
    bool is_blink;
};

#endif


